package com.hex.ds.hdtp.core.app.license.activation.converter;

import com.hex.ds.hdtp.core.app.license.activation.dto.request.FuncActivationLogRequestDto;
import com.hex.ds.hdtp.core.app.license.activation.dto.request.FuncActivationRequestDto;
import com.hex.ds.hdtp.core.app.license.activation.dto.response.ScriptConvertSurplusResponseDto;
import com.hex.ds.hdtp.core.inf.license.activation.po.FuncActivationPo;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface IFuncActivationConverter {

    FuncActivationPo toFuncActivationPo(FuncActivationRequestDto scriptVerifyRequestDto);


    ScriptConvertSurplusResponseDto toScriptConvertSurplusResponseDto(FuncActivationPo funcActivationPo);

    FuncActivationRequestDto toFuncActivationRequestDto(String activationStatus,
                                                        String serverMac,
                                                        String scriptConvertStatus,
                                                        Integer scriptConvertFrequency,
                                                        Integer scriptConvertFileSize);

    FuncActivationLogRequestDto toFuncActivationLogRequestDto(String activationCode, String crtTs);

}
